import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

//查询机构
export const findAgencyApi = (data) => {
    return httpPost('/organizations/search', data)
}
//添加机构
export const addAgencyApi = (data) => {
    return httpPost('/organizations/add', data)
}
//删除机构
export const deleteAgencyApi = (data) => {
    return httpDelete('/organizations/remove', data)
}
//修改机构
export const updateAgencyApi = (data) => {
    return httpPut('/organizations/update', data)
}
//查询一个机构详情
export const getAgencyInfoApi = (data) => {
    return httpGet('/organizations/detail', data)
}